package cn.android.weblog.dao;


import java.util.List;

import cn.android.weblog.domain.Catagory;

public interface CatagoryDao {

	List<Catagory> findAll();

	List<Catagory> findByUserId(Integer userId);

	Catagory findOne(Integer userId,Integer catagoryId);

	int addCatagory(Catagory catagory);

	int updateCatagory(Catagory catagory);

	int deleteCatagory(Catagory catagory);

	List<Catagory> findCollectByUserId(Integer userId);

}
